@import url('@/config/custom.less');
:global {
  .rv-dialog__confirm {
    color: @danger;
  }
}
.detail {
  height: calc(~'(100% - 46px)');
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  padding: 12px 24px 0 24px;
  font-family: WeChatSans-regular;
  :global {
    .rv-cell::after {
      display: none;
    }
    .rv-field__label {
      width: 58px;
      margin-right: 14px;
    }
  }
  .skeletonWrap {
    background-color: #fff;
    border-radius: 12px;
    height: 256px;

    :global {
      .rv-skeleton__title {
        margin: 24px auto 12px auto;
        height: 30px;
        width: 24%;
      }
      .rv-skeleton__row:nth-child(2) {
        height: 28px;
        margin: 0 auto 36px auto;
        width: 30% !important;
      }
      .rv-skeleton__row:nth-child(n + 3) {
        margin: 0 auto 20px auto;
        height: 24px;
        width: 80% !important;
      }
    }
  }
}
.card {
  border-radius: 12px;
  background-color: #fff;
  // padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  .type-wrap {
    padding: 24px 0 12px 0;
    display: flex;
    align-items: center;

    .icon-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
      height: 30px;
      color: #fff;
      border-radius: 50%;
      text-align: center;
      font-size: 20px;
      margin-right: 8px;
    }
    .type-name {
      font-size: 14px;
    }

    .expense {
      background-color: @primary;
    }
    .income {
      background-color: @text-warning;
    }
  }
  .amount {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
  }
  .info {
    width: 100%;
    padding: 0 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    :global {
      .rv-cell {
        padding: 10px;
      }
    }
  }
  .operation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    .operation-icon {
      margin-right: 4px;
    }

    .delete-button {
      display: flex;
      justify-content: center;
      height: 50px;
      width: 50%;
      color: red;
      border: none;
      border-radius: 0 0 0 12px;

      &::after {
        content: '';
        position: absolute;
        top: 11px;
        bottom: 12px;
        right: 0;
        width: 1px;
        transform: scale(0.5);
        background-color: #ebedf0;
      }
    }
    .edit-button {
      height: 50px;
      width: 50%;
      border: none;
      border-radius: 0;
      border-radius: 0 0 12px 0;
    }
  }
}
